<?php

namespace Biz\model\brandRights;

use Biz\pockets\modelTrait\BizModelTrait;
use Doraemon\pockets\datebase\BaseDbModel;

class BrandLevelRights extends BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'brand_level_rights';

    const STATUS_ON = BaseDbModel::STATUS_NORMAL;
    const STATUS_DELETE = BaseDbModel::STATUS_DELETE;

    use BizModelTrait;


    /**
     * 获取品牌等级权益
     * @param $brandId
     * @param $rights_status
     * @return array|bool
     */
    public static function getBrandLevelRights($brandId, $rights_status = null)
    {
        $where['brand_id'] = $brandId;
        if (isset($rights_status)) {
            $where['rights_status'] = $rights_status;
        }
        return self::dataSelect($where);
    }


}